package com.testmanager.testmananger.practiseDemo.dataCreateProvide;

import com.testmanager.testmananger.foundation.domain.AbstractAuditingEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Entity
@Data
@Accessors(chain = true)
@Table(name = "yc_moblie_test")
public class MobileEntity extends AbstractAuditingEntity implements Serializable {

    @Id
    private long id;

    @Column(unique = true)
    @NotNull(message = "手机号不可为空")
    private String mobile;

    @Column
    @NotNull(message = "姓名不可为空")
    private String name;




}
